package com.dangdang.domain;

import java.util.List;
import java.util.Set;

/**
 * 类别表
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-1-21
 */

public class Category implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private Integer id;

	/** 排序级别 */
	private Integer turn;

	/** 类别英文名 */
	private String enName;

	/** 类别中文名 */
	private String name;

	/** 类别描述 */
	private String description;

	/** 父类别ID */
	private Integer parentId;

	/*** 所有的子分类 */
	private List<Category> subCategories;

	/** 该类商品的数量 */
	private int productNum;

	/** 该类商品所拥有的产品 */
	private Set<Product> products;

	public int getProductNum() {
		return this.productNum;
	}

	public void setProductNum(int productNum) {
		this.productNum = productNum;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getTurn() {
		return this.turn;
	}

	public void setTurn(Integer turn) {
		this.turn = turn;
	}

	public String getEnName() {
		return this.enName;
	}

	public void setEnName(String enName) {
		this.enName = enName;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getParentId() {
		return this.parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public List<Category> getSubCategories() {
		return this.subCategories;
	}

	public void setSubCategories(List<Category> subCategories) {
		this.subCategories = subCategories;
	}

	public Set<Product> getProducts() {
		return this.products;
	}

	public void setProducts(Set<Product> products) {
		this.products = products;
	}

}